//
//  WCFileReference.h
//  alias
//
//  Created by William Towe on 3/26/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@class NDAlias;

@interface WCFileReference : NSObject <NSCoding, NSCopying, NSMutableCopying> {
	NDAlias *_alias;
	
	struct __WCFileReferenceFlags {
		unsigned int isDirectory:1;
		unsigned int reserved:31;
		
	} _WCFileReferenceFlags;
}
@property (readonly) NDAlias *alias;
@property (readwrite, copy) NSString *path;
@property (readonly) NSString *directoryPath;
@property (readonly) NSImage *icon;
@property (readwrite, copy) NSString *name;
@property (readonly) BOOL isDirectory;

+ (WCFileReference *)fileReferenceWithAlias:(NDAlias *)alias;
+ (WCFileReference *)fileReferenceWithFilePath:(NSString *)filePath;

- (id)initWithFilePath:(NSString *)filePath;
- (id)initWithAlias:(NDAlias *)alias;
@end
